package com.javaee.ch11.mapper;

import com.javaee.ch11.entity.Book;
import com.javaee.ch11.entity.Reader;

import com.javaee.ch11.web.dto.BookQueryDto;
import com.javaee.ch11.web.dto.ReaderQueryDto;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface ReaderMapper {
    List<Reader> selectAll();

    Reader selectById(Long id);

    int insert(Reader reader);

    int updateById(Reader reader);

    int deleteById(Long id);

    List<Reader> queryReaders(ReaderQueryDto queryDto);
}    